package com.hhp.hhptt.service;

import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hhp.hhptt.common.Constants;
import com.hhp.hhptt.common.Result;
import com.hhp.hhptt.controller.dto.UserDTO;
import com.hhp.hhptt.entity.User;
import com.hhp.hhptt.mapper.UserMapper;
import com.mysql.cj.util.StringUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public interface UserService   extends IService<User> {

    public boolean saveUser(User user);

    public UserDTO login(UserDTO userDTO);

    User register(UserDTO userDTO);
//    @Autowired
//    UserMapper  userMapper;
//
//    public Integer save(User user){
//       if(user.getId()==null){
//          return  userMapper.insert(user);
//       }else{
//         return   userMapper.update(user);
//       }
//
//    }

}
